import Vue from 'vue'
import Router from 'vue-router'
import Detail from '@/components/Detail/detail'
import Menu from '@/components/Menu/menu'

Vue.use(Router)

export default new Router({
  mode: 'history',
  routes: [
    {
      path: '/',
      redirect: '/menu'
    },
    {
      path: '/menu',
      component: Menu
    },
    {
      path: '/detail/:courseId',
      name: 'detail',
      component: Detail
    }
  ]
})
